package com.dh.blog.controllers.admin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping(value="/admin")
public class AdminBlogController {
	@RequestMapping(value="/{page_index:article}",method=RequestMethod.GET)
	public ModelAndView webPage(@PathVariable("page_index")String path){
		String forward = "admin/"+path;
		ModelAndView model = new ModelAndView();
		model.setViewName(forward);
		return model;
	}
}
